package com.gxaedu.rbac.controller;

import com.gxaedu.rbac.dto.ResponseData;
import com.gxaedu.rbac.dto.ResultData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author:Teacher黄
 * @date:Created at 2020/04/22
 */
@Controller
public class MemberController {


    /**
     * 会员列表的页面
     * @return
     */
    @GetMapping("/member/list/page")
    public String list(){
        return "member/member-list";
    }


    /**
     * 删除数据
     * @param memberId
     * @return
     */
    @PostMapping("/member/delete")
    @ResponseBody
    public ResultData delete(Long memberId){
        // 模拟删除
        return ResponseData.success(memberId);
    }



}
